package com.ahp.dao.impl;

import java.io.Serializable;
import java.util.List;

import com.ahp.bean.EvaleObject;
import com.ahp.bean.Tast;
import com.ahp.dao.EvaleObjectDao;

public class EvaleObjectDaoImpl extends GenericDAOImpl<EvaleObject, Integer> implements EvaleObjectDao {
	
	public EvaleObjectDaoImpl() {
		super(EvaleObject.class);
	}

	public EvaleObjectDaoImpl(Class<EvaleObject> clazz) {
		super(clazz);
	}
	
	public Serializable save(EvaleObject evaleObject) {
		return this.getHibernateTemplate().save(evaleObject);
	}

	public void delete(EvaleObject evaleObject) {
		this.getHibernateTemplate().delete(evaleObject);
	}
	
	@SuppressWarnings("unchecked")
	public List<EvaleObject> find(String hql) {
		return this.getHibernateTemplate().find(hql);
	}
	
	public EvaleObject get(Class<EvaleObject> entityClass, Serializable id) {
		return (EvaleObject) this.getHibernateTemplate().get(entityClass, id);
	}
	
	public void update(EvaleObject evaleObject){
		this.getHibernateTemplate().update(evaleObject);
	}
}
